package com.twu.biblioteca;

import java.util.ArrayList;
import java.util.List;

public class Theater {
    private static Theater theater;
    private List<Movie> movies;

    static {
        theater = new Theater();
    }

    private Theater() {
        movies = new ArrayList<Movie>();
    }

    public static Theater getInstance() {
        return theater;
    }

    public void addMovie(Movie movie) {
        movies.add(movie);
    }

    public List<Movie> getMovies() {
        return movies;
    }
}
